import request from '@/router/axios.js';

// 列表
export function list(params) {
    return request({
        url: "/admin/sysUser/list",
        method: 'get',
        params: params
    })
}
// 分页列表
export function pageList({currentPage, pageSize}, params) {
    return request({
        url: "/admin/sysUser/pageList",
        method: 'get',
        params: {
            currentPage, pageSize, ...params
        }
    })
}
//查询
export function query(id) {
    return request({
        url: "/admin/sysUser/query",
        method: 'get',
        params: {
            id
        }
    })
}
// 新增
export function save(data) {
    return request({
        url: "/admin/sysUser/save",
        method: 'post',
        data: data
    })
}
// 修改
export function update(data) {
    return request({
        url: "/admin/sysUser/update",
        method: 'post',
        data: data
    })
}
// 删除
export function remove(ids) {
    return request({
        url: "/admin/sysUser/remove",
        method: 'get',
        params: {
            ids
        }
    })
}
export function resetPassword(ids) {
    return request({
        url: "/admin/sysUser/resetPassword",
        method: 'get',
        params: {
            ids
        }
    })
}
export function updatePassword(data) {
    return request({
        url: "/admin/sysUser/updatePassword",
        method: 'post',
        data:data
    })
}




